﻿using System;
using System.Collections.Generic;
using System.Text;

namespace InterfaceAndImplements
{
    class Storybook:IBook
    {
        //隐式接口
        public int BookId { get; set; }
        public string BookName { get; set; }
        public double BookPrice { get; set; }

        public void Book()
        {
            Random rd = new Random();

            BookId = rd.Next(1, 99);
            BookName = "十万个冷笑话";
            BookPrice = rd.NextDouble() * 100;
            Console.WriteLine("故事书编号："+BookId) ;
            Console.WriteLine("故事书名字：《"+BookName+"》");
            Console.WriteLine("故事书价格："+BookPrice);
        }


    }
}
